**********************
* YouGov 2022 survey *
**********************

***********************************************
* Figure 2 - Performance of healthcare actors *
***********************************************
*MDs
tab Q12_1HL [aweight = weight]

*Nurses
tab Q12_2HL [aweight = weight]

*Medical research scientists
tab Q12_3HL [aweight = weight]

*Pharmaceutical companies
tab Q12_4HL [aweight = weight]

*Health insurance companies
tab Q12_5HL [aweight = weight]

*FDA
tab Q12_6HL [aweight = weight]

*CDC
tab Q12_7HL [aweight = weight]

*State Public Health Agency
tab Q12_8HL [aweight = weight]

************
* Appendix *
************

**************************************************************************
* Figure A1 - Panel A - Performance of healthcare actors by partisanship *
**************************************************************************
sort partyID_3

*MDs
by partyID_3: tab Q12_1HL [aweight = weight]
mvtest means Q12_1HL [aweight = weight] if partyID_3 < 3, by(partyID_3)

*Nurses
by partyID_3: tab Q12_2HL [aweight = weight]
mvtest means Q12_2HL [aweight = weight], by(partyID_3)

*Medical research scientists
by partyID_3: tab Q12_3HL [aweight = weight]
mvtest means Q12_3HL [aweight = weight] if partyID_3 < 3, by(partyID_3)

*Pharmaceutical companies
by partyID_3: tab Q12_4HL [aweight = weight]
mvtest means Q12_4HL [aweight = weight], by(partyID_3)

*Health insurance companies
by partyID_3: tab Q12_5HL [aweight = weight]
mvtest means Q12_5HL [aweight = weight], by(partyID_3)

*FDA
by partyID_3: tab Q12_6HL [aweight = weight]
mvtest means Q12_6HL [aweight = weight], by(partyID_3)

*CDC
by partyID_3: tab Q12_7HL [aweight = weight]
mvtest means Q12_7HL [aweight = weight] if partyID_3 < 3, by(partyID_3)

*State Public Health Agency
by partyID_3: tab Q12_8HL [aweight = weight]
mvtest means Q12_8HL [aweight = weight], by(partyID_3)